package com.whcoding.test.pojo;
import lombok.Data;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: spring-boot-learning
 * @description:
 * @author: whcoding
 * @create: 2022-02-15 11:28
 **/
@Data
@ToString
@Entity
@Table(name = "orm_customer")
public class OrmCustomerPO implements Serializable {

	@Id
	@Column(name = "id")
	private Integer id;

	/**
	 * 客户名称
	 */
	@Basic
	@Column(name = "customer_name")
	private String customerName;

	/**\
	 * 客户编码
	 */
	@Basic
	@Column(name = "customer_no")
	private String customerNo;

	/**
	 * 客户id
	 */
	@Basic
	@Column(name = "customer_id")
	private Integer customerId;

	/**
	 * 客户地址
	 */
	@Basic
	@Column(name = "customer_address")
	private String customerAddress;

	/**
	 * 客户类型
	 */
	@Basic
	@Column(name = "customer_type")
	private Integer customerType;

	/**
	 * 资产金额
	 */
	@Basic
	@Column(name = "customer_fund")
	private BigDecimal customerFund;

	/**
	 * 订单日期
	 */
	@Basic
	@Column(name = "order_date")
	private Date orderDate;

	/**
	 * 订单号
	 */
	@Basic
	@Column(name = "order_no")
	private String orderNo;

	/**
	 * 订单id
	 */
	@Basic
	@Column(name = "order_id")
	private Integer orderId;

	/**
	 * 是否有效
	 */
	@Basic
	@Column(name = "is_valid")
	private Integer isValid;


	/**
	 * 创建时间
	 */
	@Basic
	@Column(name = "create_time")
	private Date createTime;

	/**
	 * 更新时间
	 */
	@Basic
	@Column(name = "update_time")
	private Date updateTime;

	/**
	 * 创建人
	 */
	@Basic
	@Column(name = "create_user")
	private Integer createUser;

	/**
	 * 更新人
	 */
	@Basic
	@Column(name = "update_user")
	private Integer updateUser;

}
